package cn.qihang.ssm.service.impl;

import cn.qihang.ssm.mapper.BookMapper;
import cn.qihang.ssm.pojo.Book;
import cn.qihang.ssm.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: qihang
 * @Date: 2022/10/31 12:19
 * @Desc:
 */
@Service
public class BookServiceImpl implements BookService {
    @Autowired
    private BookMapper bookMapper;

    @Override
    public List<Book> findAllBooks() {
        return this.bookMapper.findAllBooks();
    }
}
